package com.homeworkp8.DctorTest;

public class Test {
    public static void main(String[] args) {

        //String name, int age, String gender, String job, double salary
        Doctor doctor1 = new Doctor("A",25,"男","吊车师傅",10000);
        System.out.println(doctor1); // To String
        Doctor doctor2 = new Doctor("A",24,"男","吊车师傅",10000);
        System.out.println(doctor1.equals(doctor2));
        //测试成功!!

        /*
            summary:
            1.向下转型 + 运行类型判断 + 过关斩将
            2.多练多想，多去做


         */
    }
}
